#!/usr/bin/python3
# -*- coding: utf-8 -*-


# Http Header
User_Agent = 'Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5'
RequestHeaders = {
    'User-Agent': User_Agent,

}

# 超时设置
TIMEOUT = 10


# Explore API
BaseUrl = 'https://blockmeta.com/api/v2/'
AddressAPI = BaseUrl+'address/{address}?limit={count}&page={page}'
TransactionAPI = BaseUrl+'transaction/{tx}'
BlocksAPI = BaseUrl+'blocks?limit={count}&page={page}'
DailyAPI = BaseUrl+'stat/daily'
HashrateAPI = BaseUrl+'stat/hash-rate'
MinerAPI = BaseUrl+'stat/miner'


# LOGO
LOGO = '''
                                    ___           ___           ___           ___     
     _____          ___        /__/\         /__/\         /  /\         /__/\    
    /  /::\        /  /\      |  |::\       |  |::\       /  /::\        \  \:\   
   /  /:/\:\      /  /:/      |  |:|:\      |  |:|:\     /  /:/\:\        \  \:\  
  /  /:/~/::\    /  /:/     __|__|:|\:\   __|__|:|\:\   /  /:/~/::\   _____\__\:\ 
 /__/:/ /:/\:|  /  /::\    /__/::::| \:\ /__/::::| \:\ /__/:/ /:/\:\ /__/::::::::\
 \  \:\/:/~/:/ /__/:/\:\   \  \:\~~\__\/ \  \:\~~\__\/ \  \:\/:/__\/ \  \:\~~\~~\/
  \  \::/ /:/  \__\/  \:\   \  \:\        \  \:\        \  \::/       \  \:\  ~~~ 
   \  \:\/:/        \  \:\   \  \:\        \  \:\        \  \:\        \  \:\     
    \  \::/          \__\/    \  \:\        \  \:\        \  \:\        \  \:\    
     \__\/                     \__\/         \__\/         \__\/         \__\/ 
'''


# Charts
BLOCK = '▇'   # equal 2%


# Help
Help = '''
NAME
     BTMMAN REPL

SYNOPSIS
     help            [显示帮助信息]
     tx   {txid}     [根据交易id查询信息]
     addr {address}  [根据地址查询信息]
     claer           [清除屏幕]
DESCRIPTION
     在交互式界面根据地址或交易id进行信息查询
'''

